package com.example.canteen.mapper;

import com.example.canteen.domain.Products;
import com.example.canteen.domain.Suppliers;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ProductsMapper {


    List<Products> getAll();


    Products selectById(@Param("productID") int productID);
    Products selectProductsByName(String productname);


    public static int insertProducts(Products products) {
        return 0;
    }

    public static int updateProducts(Products products) {
        return 0;
    }

    public static int deleteProductsById(int ProductsID) {
        return 0;
    }

}